package com.biostime.qdingding.modules.qd.dao;

import java.util.List;
import java.util.Map;

import com.biostime.qdingding.common.mybatis.MyBatisDao;
import com.biostime.qdingding.common.persistence.CrudDao;
import com.biostime.qdingding.modules.qd.entity.Dashboard;

/**
 * 仪表盘Dao
 * @author phil
 * @version 2016-03-30
 */
@MyBatisDao
public interface DashboardDao extends CrudDao<Dashboard> {

	Map<String, Object> getMemberCount(Dashboard db);

	Map<String, Object> getCourseCount(Dashboard db);

	List<Map<String, Object>> getComment(Dashboard db);

	Map<String, Object> getTotalCourseRate(Dashboard db);

	Map<String, Object> getYearCourseRate(Dashboard db);

	Map<String, Object> getYearAttendRate(Dashboard db);

	Map<String, Object> getTotalAttendRate(Dashboard db);

	List<Map<String, Object>> getThisYearContract(Dashboard db);

	List<Map<String, Object>> getLastYearContract(Dashboard db);
	
}